package com.cl.controller;

import com.cl.config.TongYiConf;
import com.cl.config.TongYiUtil;
import com.cl.utils.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/ai")
public class AIController {

    @Autowired
    private TongYiUtil tongYiUtil;

    @GetMapping("/questAI")
    public R questAI(String content){
        String result = tongYiUtil.questAI(content);
        return R.ok(result);
    }

}
